|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
GraphView.GraphPanel
class GraphView.GraphPanel
Nested class: a component to display the graph.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GraphView.GraphPanel(int width,
int height,
int startMax)
Create a new, empty GraphPanel. |
|
| Method Summary | |
|---|---|
void |
clearImage()
Clear the image on this panel. |
Dimension |
getPreferredSize()
Tell the layout manager how big we would like to be. |
boolean |
isOpaque()
This component is opaque. |
void |
newRun()
Indicate a new simulation run on this panel. |
void |
paintComponent(Graphics g)
This component needs to be redisplayed. |
void |
repaintNow()
Cause immediate update of the panel. |
void |
scaleDown()
Scale the current graph down vertically to make more room at the top. |
void |
update(int step,
Field field,
FieldStats stats)
Dispay a new point of data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GraphView.GraphPanel(int width,
int height,
int startMax)
| Method Detail |
|---|
public void clearImage()
public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic boolean isOpaque()
isOpaque in class JComponentpublic void newRun()
public void paintComponent(Graphics g)
paintComponent in class JComponentg - The graphics context that can be used to draw on this component.public void repaintNow()
public void scaleDown()
public void update(int step,
Field field,
FieldStats stats)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||